<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of get_typeslist</title>
  <meta name="keywords" content="get_typeslist">
  <meta name="description" content="Auxiliary function">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
</head>
<body>
<a name="_top"></a>
<!-- menu.html . -->
<h1>get_typeslist
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>Auxiliary function</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function [types] = get_typeslist(plurality) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Auxiliary function

 [TYPES] = GET_TYPESLIST(PLURALITY)

 Returns a cell array of strings
 with the names of the main types


 Set PLURALITY to 'single' or 'plural'</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="get_number.html" class="code" title="function [objno] = get_number(subj,objtype,objname,varargin)">get_number</a>	Internal function - find the cell index of an object</li><li><a href="get_type.html" class="code" title="function [objcell] = get_type(subj,objtype)">get_type</a>	For internal use. Returns the entire cell array of a given type</li><li><a href="init_object.html" class="code" title="function [subj] = init_object(subj,objtype,new_objname);">init_object</a>	Add a new empty object</li><li><a href="remove_objfield.html" class="code" title="function [subj] = remove_objfield(subj,objtype,objname,fieldname)">remove_objfield</a>	Removes a field from the object</li><li><a href="summarize.html" class="code" title="function [] = summarize(subj,varargin)">summarize</a>	Prints info about the contents of the subj structure</li></ul>
<!-- crossreference -->


<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [types] = get_typeslist(plurality)</a>
0002 
0003 <span class="comment">% Auxiliary function</span>
0004 <span class="comment">%</span>
0005 <span class="comment">% [TYPES] = GET_TYPESLIST(PLURALITY)</span>
0006 <span class="comment">%</span>
0007 <span class="comment">% Returns a cell array of strings</span>
0008 <span class="comment">% with the names of the main types</span>
0009 <span class="comment">%</span>
0010 <span class="comment">%</span>
0011 <span class="comment">% Set PLURALITY to 'single' or 'plural'</span>
0012 
0013 
0014 <span class="keyword">switch</span>(plurality)
0015  
0016  <span class="keyword">case</span> <span class="string">'single'</span>
0017   types{1} = <span class="string">'pattern'</span>;
0018   types{2} = <span class="string">'regressors'</span>;
0019   types{3} = <span class="string">'selector'</span>;
0020   types{4} = <span class="string">'mask'</span>;
0021  
0022  <span class="keyword">case</span> <span class="string">'plural'</span>
0023   types{1} = <span class="string">'patterns'</span>;
0024   types{2} = <span class="string">'regressors'</span>;
0025   types{3} = <span class="string">'selectors'</span>;
0026   types{4} = <span class="string">'masks'</span>;
0027  
0028  <span class="keyword">otherwise</span>
0029   error(<span class="string">'Unknown plurality type'</span>);
0030 <span class="keyword">end</span>
0031 
0032</pre></div>
<hr><address>Generated on Wed 31-Aug-2005 15:27:57 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2003</address>
</body>
</html>